<?php

function check_user_role()
{
        $ci_obj =& get_instance();

        //Find out what role the user is..
        $ci_obj->load->model('test_model');
        $user = $ci_obj->test_model->retrieve_user($ci_obj->session->userdata('is_logged_in'));

        if ($user !== FALSE && isset($user->IsAdmin))
                return $user->IsAdmin;
        else
                return FALSE;
}

/* EOF */
